package com.derbysoft.dswitch.adapter.ihg.common.repository;

import com.derbysoft.dswitch.adapter.ihg.common.domain.ConfigInfo;
import com.derbysoft.dswitch.adapter.ihg.web.action.support.Paginater;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ConfigRepository {

    ConfigInfo loadUsable(String name);

    ConfigInfo loadByCode(String name);

    @Transactional(readOnly = false)
    void saveAll(List<ConfigInfo> configInfos);

    Paginater paginater(Paginater paginater);
}
